﻿Public Class ThongTinNhaDTO

    Private _MaTT As String
    Private _MaDT As String
    Private _MaLN As String
    Private _MaKV As String
    Private _DiaChi As String
    Private _DienTich As String
    Private _GiaTien As String
    Private _MoTa As String
    Private _SucChua As Integer
    Private _HuongNha As String
    Private _NgayDang As Date
    Private _NgayHetHan As Date

    Public Property Mã_TTN() As String
        Get
            Return _MaTT
        End Get
        Set(ByVal value As String)
            _MaTT = value
        End Set
    End Property

    Public Property Mã_đăng_tin() As String
        Get
            Return _MaDT
        End Get
        Set(ByVal value As String)
            _MaDT = value
        End Set
    End Property

    Public Property Mã_loại_nhà() As String
        Get
            Return _MaLN
        End Get
        Set(ByVal value As String)
            _MaLN = value
        End Set
    End Property

    Public Property Mã_khu_vực() As String
        Get
            Return _MaKV
        End Get
        Set(ByVal value As String)
            _MaKV = value
        End Set
    End Property

    Public Property Địa_chỉ() As String
        Get
            Return _DiaChi
        End Get
        Set(ByVal value As String)
            _DiaChi = value
        End Set
    End Property

    Public Property Diện_tích() As String
        Get
            Return _DienTich
        End Get
        Set(ByVal value As String)
            _DienTich = value
        End Set
    End Property

    Public Property Giá_tiền() As String
        Get
            Return _GiaTien
        End Get
        Set(ByVal value As String)
            _GiaTien = value
        End Set
    End Property

    Public Property Mô_tả() As String
        Get
            Return _MoTa
        End Get
        Set(ByVal value As String)
            _MoTa = value
        End Set
    End Property

    Public Property Sức_chứa() As Integer
        Get
            Return _SucChua
        End Get
        Set(ByVal value As Integer)
            _SucChua = value
        End Set
    End Property

    Public Property Hướng_nhà() As String
        Get
            Return _HuongNha
        End Get
        Set(ByVal value As String)
            _HuongNha = value
        End Set
    End Property

    Public Property Ngày_đăng() As Date
        Get
            Return _NgayDang
        End Get
        Set(ByVal value As Date)
            _NgayDang = value
        End Set
    End Property

    Public Property Ngày_hết_hạn() As Date
        Get
            Return _NgayHetHan
        End Get
        Set(ByVal value As Date)
            _NgayHetHan = value
        End Set
    End Property


    Public Sub New(ByVal MTT As String, ByVal MDT As String, ByVal MLN As String, ByVal MKV As String, ByVal DC As String, ByVal DT As String, ByVal GT As String, ByVal MT As String, ByVal SC As String, ByVal HN As String, ByVal ND As String, ByVal NHH As String)
        Me._MaTT = MTT
        Me._MaDT = MDT
        Me._MaLN = MLN
        Me._MaKV = MKV
        Me._DiaChi = DC
        Me._DienTich = DT
        Me._GiaTien = GT
        Me._MoTa = MT
        Me._SucChua = SC
        Me._HuongNha = HN
        Me._NgayDang = ND
        Me._NgayHetHan = NHH
    End Sub

    Public Sub New(ByVal MaKV As String)
        Me._MaTT = MaKV
    End Sub

End Class
